package com.briup.njf;

/**
 * 密封类：对于final用法的一个扩展
 * final修饰的类不能被继承
 */
public class Test6_Sealed {
}
sealed interface Shape
        permits Circle, Rectangle {

}
non-sealed class Circle implements Shape{

}
final class Rectangle implements Shape{

}
